/* eslint-disable space-before-function-paren */
/* eslint-disable indent */
/* eslint-disable eol-last */
import {
    baseUrl
} from '../config/env'
import axios from 'axios'
export function getDataByname(name, number) {
    axios.get(baseUrl + '/search/' + '?name=' + name + '&number=' + number).then((res) => {
        return res.data
    }).catch((res) => {
        console.log(res)
    })
}
export function getData(number) {
    axios.get(baseUrl + '/search/' + '&number=' + number).then((res) => {
        return res.data
    }).catch((res) => {
        console.log(res)
    })
}